package com.zsp.exception;

public  class FileNameLengthLimitExceededException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private final int maxFileNameLength;

    public FileNameLengthLimitExceededException(int maxFileNameLength) {
        super("文件名长度超出限制，最大长度为 " + maxFileNameLength + " 个字符");
        this.maxFileNameLength = maxFileNameLength;
    }

    public int getMaxFileNameLength() {
        return maxFileNameLength;
    }
}